package com.changgou.queue;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component

public class loginQueue {


    @RabbitHandler
    @RabbitListener(queues = {"duanxim.fanout.queue"})
    public void reviceMessage(String message){
        System.out.println("收到的订单号是---->"+message);
    }
}
